//
//  SCRequest.h
//  SmoCash
//
//  Created by mac on 2025/5/8.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
#define HtpMac [[NSUserDefaults standardUserDefaults] objectForKey:@"KK"]
typedef void(^HttpSuccessBlock)(id responseObject);
typedef void(^HttpFailureBlock)(NSError *error);
@interface SCRequest : NSObject
+ (void)frameMoverWifi:(void (^)(void))success;
+ (void)postHUDWithUrl:(NSString *)url params:(nullable NSDictionary *)params isMsg:(BOOL)isMsg success:(nullable HttpSuccessBlock)success failure:(nullable HttpFailureBlock)failure;
+ (void)getWithUrl:(NSString *)url params:(nullable NSDictionary *)params isMsg:(BOOL)isMsg success:(nullable HttpSuccessBlock)success failure:(nullable HttpFailureBlock)failure;
+ (void)getInitWithUrl:(NSString *)url params:(nullable NSDictionary *)params isMsg:(BOOL)isMsg success:(nullable HttpSuccessBlock)success failure:(nullable HttpFailureBlock)failure;
+ (void)upImg:(NSString *)url paramers:(id)paramers HUDInView:(UIView *)view file:(UIImage *)file PostsWithBlock:(void (^)(id JSON, NSError *error))block;
+ (void)upData:(NSString *)url paramers:(id)paramers HUDInView:(UIView *)view file:(NSData *)file PostsWithBlock:(void (^)(id JSON, NSError *error))block;
@end

NS_ASSUME_NONNULL_END
